﻿using Orchard.UI.Resources;

namespace PlanetTelex.Coverflow
{
    public class ResourceManifest : IResourceManifestProvider
    {
        #region Implementation of IResourceManifestProvider

        /// <summary>
        /// Builds the manifests.
        /// </summary>
        /// <param name="builder">The builder.</param>
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            builder.Add().DefineStyle("Coverflow").SetDependencies("jQueryUI_Orchard").SetUrl("jquery-ui-coverflow.css");
            builder.Add().DefineScript("jQueryUI_Coverflow").SetDependencies("jQuery", "jQueryUI_Core", "jQueryUI_Widget", "jQueryEffects_Core", "jQueryUI_Slider").SetUrl("jquery-ui-coverflow.min.js");

            // Admin
            builder.Add().DefineStyle("Coverflow_Admin").SetDependencies("jQueryUI_Orchard").SetUrl("jquery-ui-coverflow-admin.css");
            builder.Add().DefineScript("Json").SetUrl("pt-json.js");
            builder.Add().DefineScript("jQuery_iPhoneSwitch").SetDependencies("jQuery").SetUrl("jquery.iphone-switch.js");
            builder.Add().DefineScript("jQueryUI_Coverflow_Admin").SetDependencies("jQuery", "jQueryUI_Core", "jQueryUI_Widget", "jQueryEffects_Core", "jQueryUI_Slider", "jQueryUI_Accordion").SetUrl("jquery-ui-coverflow-admin.js");
        }

        #endregion
    }
}
